# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class SqlInfo(object):

    def __init__(self, appCode=None, client_net_address=None, database=None, execution_time=None, loginname=None, metric=None, region=None, resourceId=None, serviceCode=None, session_id=None, sqlstr=None, start_time=None, status=None, time=None, value=None):
        """
        :param appCode: (Optional) 产品标识，目前统一用jcloud
        :param client_net_address: (Optional) 客户端IP地址
        :param database: (Optional) 库名
        :param execution_time: (Optional) SQL已执行时间（单位s）
        :param loginname: (Optional) 用户名
        :param metric: (Optional) 监控项
        :param region: (Optional) 资源所在的地域
        :param resourceId: (Optional) 资源的uuid
        :param serviceCode: (Optional) 资源的类型
        :param session_id: (Optional) 会话ID
        :param sqlstr: (Optional) SQL详细文本
        :param start_time: (Optional) SQL开始执行的时间
        :param status: (Optional) SQL会话请求状态
        :param time: (Optional) 毫秒级时间戳
        :param value: (Optional) 上报的监控值
        """

        self.appCode = appCode
        self.client_net_address = client_net_address
        self.database = database
        self.execution_time = execution_time
        self.loginname = loginname
        self.metric = metric
        self.region = region
        self.resourceId = resourceId
        self.serviceCode = serviceCode
        self.session_id = session_id
        self.sqlstr = sqlstr
        self.start_time = start_time
        self.status = status
        self.time = time
        self.value = value
